package server.model.meeting;

import java.io.Serializable;

public class User extends Participant {

	private UserInfo UserInfo;
	private String password;
	private Number sessionKey;
	
	public User()
	{
		createUserSessionKey();
	}
	
	public boolean checkPassword(String password) {
		return this.password.matches(password);
	}
	
	public void setPassword(String password) {
		this.password = password;
	}

	public void setUserInfo(UserInfo userInfo) {
		UserInfo = userInfo;
	}
	public void createUserSessionKey()
	{
		sessionKey = Math.random() * 999999999;
	}
	public Number getUserSessionKey()
	{
		return sessionKey;
	}
	public UserInfo getUserInfo() {
		return UserInfo;
	}
}
